/**
 *  ward @ 2019
 *  harrydeep@wardyan.top
 */
package top.wardyan.base.action;

import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Composite;

import top.wardyan.po.WTable;

/**
 * 
 * @author ward 2019年2月27日
 */
public abstract class BaseMenuTableComposite<T extends Composite> extends BaseMenuComposite<T>{
	
	protected WTable<BaseMenuTableComposite<T>> table;

	/**
	 * @param parent
	 */
	public BaseMenuTableComposite(T parent) {
		super(parent);
		this.init(parent);
	}
	
	/** 在父类中已经设置颜色**/
	private void init(T parent) {
		table = new WTable<>(this, new Rectangle(margin, 
				topMenu.getBottom().y, 
				this.getSize().x - margin * 2, 
				this.getSize().y - topMenu.getBottom().y - 50));
		//table = new WTable<>(parent, new Rectangle(10, 100, 800, 600));
		//table = new Table(this, SWT.NONE);
		//table.setBounds(10, 100, 800, 600);
	}
	
}
